package fr.cnam.projetSiw.client.structure;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class DescEventPlace extends Place
{
	

	private String name;

	public DescEventPlace(String token)
	{
		this.name = token;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}


	public static class Tokenizer implements PlaceTokenizer<DescEventPlace>
	{

		@Override
		public String getToken(DescEventPlace place)
		{
			return place.getName();
		}

		@Override
		public DescEventPlace getPlace(String token)
		{
			return new DescEventPlace(token);
		}
	}
}
